/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #eaeaea;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    color: #7f8c8d;
}

/* 聊天容器样式 */
.chat-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
}

.system-message, .assistant-message, .user-message {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    max-width: 80%;
}

.system-message {
    background-color: #f1f8ff;
    border-left: 4px solid #4a90e2;
    width: 100%;
    max-width: 100%;
}

.system-message ul {
    margin-left: 20px;
    margin-top: 10px;
}

.assistant-message {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    margin-right: auto;
}

.user-message {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    margin-left: auto;
}

/* 用户输入区域 */
.user-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eaeaea;
}

.user-input textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
    font-size: 16px;
}

.user-input button {
    margin-left: 10px;
    padding: 0 20px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.user-input button:hover {
    background-color: #3a7bc8;
}

/* 订票选项 */
.booking-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.option-button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.option-button.confirm {
    background-color: #4caf50;
    color: white;
}

.option-button.confirm:hover {
    background-color: #3d8b40;
}

.option-button.cancel {
    background-color: #f44336;
    color: white;
}

.option-button.cancel:hover {
    background-color: #d32f2f;
}

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    color: #7f8c8d;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .chat-messages {
        height: 350px;
    }
    
    .system-message, .assistant-message, .user-message {
        max-width: 90%;
    }
}

/* 美化滚动条 */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Markdown 样式 */
.assistant-message h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.assistant-message ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.assistant-message strong {
    font-weight: bold;
}